__author__ = """Zach Seifts <zach.seifts@gmail.com>"""
__docformat__ = 'plaintext'

from AccessControl import ClassSecurityInfo
from Products.Archetypes.atapi import *
from Products.ATContentTypes.content.document import ATDocument
from Products.synchronicity.config import *

schema = Schema((

),
)

Requirement_schema = BaseSchema.copy() + \
    getattr(ATDocument, 'schema', Schema(())).copy() + \
    schema.copy()

class Requirement(BaseContent, ATDocument):
    """
    """
    security = ClassSecurityInfo()
    __implements__ = (getattr(BaseContent,'__implements__',()),) + (getattr(ATDocument,'__implements__',()),)

    # This name appears in the 'add' box
    archetype_name = 'Requirement'

    meta_type = 'Requirement'
    portal_type = 'Requirements Document'
    allowed_content_types = [] + list(getattr(ATDocument, 'allowed_content_types', []))
    filter_content_types = 0
    global_allow = 0
    #content_icon = 'Requirement.gif'
    immediate_view = 'base_view'
    default_view = 'base_view'
    suppl_views = ()
    typeDescription = "Requirement"
    typeDescMsgId = 'description_edit_requirement'

    _at_rename_after_creation = True

    schema = Requirement_schema
    
    # Methods


registerType(Requirement, PROJECTNAME)